﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dashboard2.aspx.cs" Inherits="dashboard" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="heb"  dir="rtl">
<head id="Head1" runat="server">
 <link rel="shortcut icon" type="image/jpg" href="../images/logo/logo_feas.jpg" />
<title>Real estate</title>
<script src="../js/html5.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../js/utility.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap-modal.js"></script>
<link rel="stylesheet" type="text/css" href="../css/metro-bootstrap.css"/>
    <link rel="stylesheet" href="../docs/font-awesome.css"/>
<!--<script type="text/javascript" src="../js/sticky_footer.js"></script>-->
<link rel="stylesheet" type="text/css" href="../css/master.css"/>

<link rel="stylesheet" type="text/css" href="../css/dropBox.css"/>
<link rel="stylesheet" type="text/css" href="../css/menu.css"/>
<link rel="stylesheet" type="text/css" href="../css/tooltip.css"/>
<link rel="stylesheet" type="text/css" href="../css/buttons.css"/>
<script type="text/javascript" 
        src="http://www.google.com/jsapi"></script>
                   <link href="../fullcalendar2/jquery-ui-1.7.3.custom.css" rel="stylesheet" type="text/css" />
   
    <link href="../fullcalendar2/fullcalendar.css" rel="stylesheet" type="text/css" />
    <script src="../jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../jquery/jquery-ui-1.7.3.custom.min.js" type="text/javascript"></script>

    <script src="../jquery/jquery.qtip-1.0.0-rc3.min.js" type="text/javascript"></script>
    <link href="Assets/css/style2.css" rel="stylesheet" type="text/css" />

    <script src="../fullcalendar2/fullcalendar.min.js" type="text/javascript"></script>

    <script src="../scripts/calendarscript.js" type="text/javascript"></script>
    
    <script src="../jquery/jquery-ui-timepicker-addon-0.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript">

    // Initialize version 1.0 of Google AJAX API
    google.load("language", "1");

    function translate(lang) {
        var source = document.getElementById("article").innerHTML;
        var len = content.length;

        // Google Language API accepts 500 characters per request 
        var words = 500;

        // This is for English pages, you can change the
        // sourcelang variable for other languages
        var sourcelang = "en";
        document.getElementById("translation").innerHTML = "";

        for (i = 0; i <= (len / words); i++) {
            google.language.translate(source.substr(i * words, words),
                 "en", lang, function (result) {
                     if (!result.error) {
                         document.getElementById("translation").innerHTML
           = document.getElementById("translation").innerHTML
           + result.translation;
                     }
                 });
        }

        // Hide the text written in the original language
        document.getElementById("article").style.display = 'none';
        return false;
    }

    // Switch to the original language

    function original() {
        document.getElementById("translation").style.display = 'none';
        document.getElementById("article").style.display = 'block';
        return false;
    }
</script>

    <script type="text/javascript">

        $(document).ready(function () {


            $.countNewEmail();
        });
        $.countNewEmail = function () {

            $.post("notify.aspx", {

                requestFrom: "countNewEmail"
            },
function (data, status) {
    $("span#Email_info_count1").html(data);
});
        };
</script>

 

 

 <style>
    #content 
    {
        	min-height:550px;
	background-color: #FFFFFF;
	background-image: url(../images/bg/contentbg.png);
	min-width: 82%;
	margin-right:221px;
	height:100%;
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #CCC;
    }
    #leftcolumn {
	float: right;
	width: 220px;
	margin-left: -100%;
	min-height:550px;
	background-color: #FFF;
	background-image: url(../images/bg/sidebarbg.png);
	
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #CCC;
	height:100%;
	
}
    </style>
</head>
<%
    int i;
    %>
    <style>
	body{
		overflow-x: hidden;
	}
</style>
<body >
    
<form id="form1" runat="server">
    <div id="wrapper"><asp:Label ID="Label5" runat="server" Text="Label" Visible="false"></asp:Label>
<div id="header"><a href="#"> <img src="../images/logo/logo_feas.png" alt="Logo" style="margin-top:7px;margin-left:7px;float:left;"> <img src="../images/logo/logo_feas2.png" alt="Logo" class="logo"></a>
    <div id="metaphors" align="right">
      <li id="btnemail" ><img src="../images/icons/mail.png" alt="Emails" </li><a data-toggle="modal" href="#addtask" id="btnemail" style="font-weight:bold;">Updates</a>
      <span id="Email_info_count1"  class="info_count" title="Date Renew" rel="tooltip">0</span>
     
     
    
      

      <li id="btntheme"><a href="#"><span class="theme_icon"></span>Theme<span class="arrow"></span></a></li>
      <img src="../images/face1.png" class="user_icon">
      <li id="btnUser"><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:label ID="Label1" runat="server" text="Label"></asp:label><span class="arrow"></span></a></li>
       <li><span class="logout_icon"></span>
        <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Logout</asp:LinkButton></li>
      <div id="box3" class="outerbox">
        <div id="box_inner3" class="innerbox">
          <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
        </div>
      </div>
      <div id="box2" class="outerbox">
        <div id="box_inner3" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">alert</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">alert</div>
        </div>
      </div>
      <div id="box1" class="outerbox">
        <div id="box_inner1" class="innerbox">
          <div class="user_option1">
            <h4 class="opt_heading">Menu Bar</h4>
            <span id="show_menu" class="style">on</span><span id="hide_menu" class="style2">off</span></div>
        </div>
      </div>
      <div id="box" class="outerbox">
        <div id="box_inner" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">Edit Profile</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">Change Password</div>
        </div>
      </div>
    </div>
    <!--End of the metaphor tag--> 
    
  </div>
  <!--End of the Header tag-->
  
  <div id="contentliquid">
    <div id="content">
      <div id="titalbar">
        <h1>Dashboard</h1>
        
      </div>
<div>      <!-- Main Menu -->
        <div class="container">
			<!-- Codrops top bar --><!--/ Codrops top bar -->
            <section class="tabs">
	            <input id="tab-1" type="radio" name="radio-set" class="tab-selector-1" checked="checked" />
		        <label for="tab-1" class="tab-label-1">About</label>
		
	            <input id="tab-2" type="radio" name="radio-set" class="tab-selector-2" />
		        <label for="tab-2" class="tab-label-2">Services</label>
		
	            <input id="tab-3" type="radio" name="radio-set" class="tab-selector-3" />
		        <label for="tab-3" class="tab-label-3">Work</label>
			
	            <input id="tab-4" type="radio" name="radio-set" class="tab-selector-4" />
		        <label for="tab-4" class="tab-label-4">Contact</label>
            
			    <div class="clear-shadow"></div>
			
		        <div class="content">
			        <div class="content-1">
						<h2>About us</h2>
                        <p>You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know that seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We said we'd say it was the snow that killed the other two, but it wasn't. Nature is lethal but it doesn't hold a candle to man.</p>
						<h3>How we work</h3>
						<p>Like you, I used to think the world was this great place where everybody lived by the same standards I did, then some kid with a nail showed me I was living in his world, a world where chaos rules not order, a world where righteousness is not rewarded. That's Cesar's world, and if you're not willing to play by his rules, then you're gonna have to pay the price. </p>
				    </div>
			        <div class="content-2">
						<h2>Services</h2>
                        <p>Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb.</p>
						<h3>Excellence</h3>
						<p>Like you, I used to think the world was this great place where everybody lived by the same standards I did, then some kid with a nail showed me I was living in his world, a world where chaos rules not order, a world where righteousness is not rewarded. That's Cesar's world, and if you're not willing to play by his rules, then you're gonna have to pay the price. </p>
				    </div>
			        <div class="content-3">
						<h2>Portfolio</h2>
                        <p>The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.</p>
						<h3>Examples</h3>
						<p>Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me Mr Glass. </p>
				    </div>
				    <div class="content-4">
						<h2>Contact</h2>
                        <p>You see? It's curious. Ted did figure it out - time travel. And when we get back, we gonna tell everyone. How it's possible, how it's done, what the dangers are. But then why fifty years in the future when the spacecraft encounters a black hole does the computer call it an 'unknown entry event'? Why don't they know? If they don't know, that means we never told anyone. And if we never told anyone it means we never made it back. Hence we die down here. Just as a matter of deductive logic.</p>
						<h3>Get in touch</h3>
						<p>Well, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing. </p>
				    </div>
		        </div>
			</section>
        </div>
    </div>
         

    </div>
      
  </div>

<div id="leftcolumn">
 <div id="leftcolumn_top">
  <%  SqlConnection con = null;
        con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString);
      con.Open();
      SqlCommand cmd = new SqlCommand("SELECT * FROM request5 where status1='0'", con);
      
      SqlDataReader dr = cmd.ExecuteReader();
      int i = 0;
    

      while (dr.Read())
      {
         
          i = i + 1;

         // Response.Write("<span style=\"border-bottom:1px solid #CCC;width:100%;padding:5px;\">");
        

      

         
      }

   
    
      dr.Close();
      con.Close(); %>

       <%  SqlConnection con1 = null;
        con1 = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString);
      con1.Open();
      SqlCommand cmd1 = new SqlCommand("SELECT * FROM message1 where status_='0'", con1);
      
      SqlDataReader dr1 = cmd1.ExecuteReader();
      int a = 0;
    

      while (dr1.Read())
      {
         
          a = a+ 1;

         // Response.Write("<span style=\"border-bottom:1px solid #CCC;width:100%;padding:5px;\">");
        

      

         
      }

   
    
      dr1.Close();
      con1.Close(); %>
   <%--   <div id="addtask" runclass="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body">
        <table id="tbl_task" class="model_popup_desgin">
  <tr>
    <td><p> You have a recent&nbsp;&nbsp<%=i%>&nbsp;&nbsp;update on date</p></td>
  </tr>
  <tr>
     
   
  </tr>
  <tr>
      
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
        </div>--%>
         <div id="addtask" class="modal hide fade in" style="display: none; ">
        <div class="modal-header">  <a class="close" data-dismiss="modal">x    <h1 style="font-size:15px;padding:7px;font-weight:bold;">Updates</h1>  </div>
        <div class="modal-body">
        <table id="tbl_task" class="model_popup_desgin">
  <tr>
    <td><p> You have a recent&nbsp;&nbsp<%=i%>&nbsp;&nbsp;update on date</p></td>
  </tr>
  <tr>
     
   
  </tr>
  <tr>
      
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
        </div>
        <div class="modal-footer">  <asp:Button ID="Button2" runat="server" Text="cancel" 
                CssClass="btn btn-success" Visible="False" />
            <asp:Button ID="Button1" runat="server" Text="View" CssClass="btn btn-success" 
                onclick="Button1_Click" Visible="False" /> <p><a data-toggle="modal" href="#addtask1" class="btn btn-success" style="font-weight:bold;"><img src="../images/icons/task.png" style="margin-right:7px;" />View</a></p></div>
      </div>
      <div id="Div1" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body">
        <table id="Table1" class="model_popup_desgin">
  <tr>
    <td><p> You have a recent&nbsp;&nbsp<%=a%>&nbsp;&nbsp;Messages</p></td>
  </tr>
  <tr>
     
   
  </tr>
  <tr>
      
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
        </div>
        <div class="modal-footer">  <asp:Button ID="Button5" runat="server" Text="cancel" 
                CssClass="btn btn-success" Visible="False" />
            <asp:Button ID="Button6" runat="server" Text="View" CssClass="btn btn-success" 
                onclick="Button1_Click" Visible="False" /> <p><a data-toggle="modal" href="#Div2" class="btn btn-success" style="font-weight:bold;"><img src="../images/icons/task.png" style="margin-right:7px;" />View</a></p></div>
      </div>
       <div id="addtask1" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">NotificationNotification's</h1>
        </div>
        <div class="modal-body">
        

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource3" CssClass ="mGrid " onrowcommand="GridView1_RowCommand" >
        <Columns>
            <asp:BoundField DataField="r_id" HeaderText="Request ID" SortExpression="r_id" />
            <asp:BoundField DataField="added" HeaderText="Added By" SortExpression="added" />
        <asp:ButtonField ButtonType="Image" CommandName="active" HeaderText="View" ImageUrl="../images/icons/cross.png"
              Text="View" />
        </Columns>
       
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
        SelectCommand="SELECT [r_id], [added] FROM [request5]  WHERE ([status1] = @status1) ">
        <SelectParameters>
            <asp:ControlParameter ControlID="Label2" Name="status1" PropertyName="Text" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
    <br />
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>

          
        </div>
        <div class="modal-footer">  <asp:Button ID="Button3" runat="server" Text="cancel" CssClass="btn btn-success" />
            <asp:Button ID="Button4" runat="server" Text="Done" CssClass="btn btn-success" 
                onclick="Button1_Click" /></div>
      </div>
       <div id="Div2" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x    <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body1">
        
<div style="margin-left :80px;">
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
            <asp:BoundField DataField="p_id" HeaderText="p_id" SortExpression="p_id" />
            <asp:BoundField DataField="ph_no" HeaderText="ph_no" SortExpression="ph_no" />
            <asp:BoundField DataField="address" HeaderText="address" 
                SortExpression="address" />
            <asp:BoundField DataField="message" HeaderText="message" 
                SortExpression="message" />
            <asp:BoundField DataField="date_" HeaderText="date_" SortExpression="date_" />
        </Columns>
    </asp:GridView>
    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
    <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
        SelectCommand="SELECT [email], [p_id], [ph_no], [address], [message], [date_] FROM [message1] WHERE ([status_] = @status_)">
        <SelectParameters>
            <asp:ControlParameter ControlID="Label5" Name="status_" PropertyName="Text" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
          </div>
        </div>
        <div class="modal-footer">  <asp:Button ID="Button7" runat="server" Text="cancel" CssClass="btn btn-success" />
            <asp:Button ID="Button8" runat="server" Text="Done" CssClass="btn btn-success" 
                onclick="Button1_Click" /></div>
      </div>
 </div>
      <ul id="nav" style=" text-align:right">
      <li><a href="dashboard.aspx"><img src="../images/icons/home.png" class="menu_icon">לוח בקרה</a> </li>   
       <li><a href="#"><img src="../images/icons/form.png" class="menu_icon">להשכרה</a>
        <ul>
          <li><a href="report_property_for_rent.aspx"><img src="../images/icons/tabs.png" class="menu_icon"> נכס להשכרה</a></li> <li><a href="search_property_torent.aspx"><img src="../images/icons/tabs.png" class="menu_icon"> לקוח רוצה לשכור</a></li>
        </ul></li>
        <li><a href="search_buy_property.aspx"><img src="../images/icons/form.png" class="menu_icon">לקוח רוצה לקנות</a>
       </li>
     
         <li><a href="searh_sell_property.aspx"><img src="../images/icons/form.png" class="menu_icon">נכס למכירה</a>
  
          <li><a href="#"><img src="../images/icons/std2.png" class="menu_icon"> סוכן</a>
        <ul>
          <li><a href="add_agent.aspx"><img src="../images/icons/plus.png" class="menu_icon">Agent add</a></li>
         
          <li><a href="deleteagent.aspx"> <img src="../images/icons/trash.png" class="menu_icon">Delete Agent</a></li>
          <li><a href="agentreport.aspx"><img src="../images/icons/pages.png" class="menu_icon">Agent Edit/Reports</a></li>
        </ul>
      </li>
  
      <li><a href="admin_notes.aspx"><img src="../images/icons/search.png" class="menu_icon">משימות</a>
    
      </li>
       <li><a href="#"><img src="../images/icons/id.png" class="menu_icon">פרטי חשבון</a>
        <ul>
          <li><a href="admin_account_information.aspx"><img src="../images/icons/id.png" class="menu_icon">Update Account Details</a></li>
         
          
        </ul>
      </li>
       <li><a href="messages1.aspx"><img src="../images/icons/id.png" class="menu_icon">הודעות</a>
        
      </li>

      <li style="margin-left:10px; margin-top:10px">  <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
    
    <div id="calendar">
    </div>
    <div id="updatedialog" style="font: 70% 'Trebuchet MS', sans-serif; margin: 50px;"
        title="Update or Delete Event">
        <table cellpadding="0" class="style1" >
            <tr>
                <td class="alignRight" style="visibility:visible">
                    Name:</td>
                <td class="alignLeft" style="visibility:visible">
                    <input id="eventName" type="text" readonly="readonly" /><br /></td>
            </tr>
            <tr>
                <td class="alignRight" style="visibility:visible">
                    Description:</td>
                <td class="alignLeft" style="visibility:visible">
                    <textarea id="eventDesc" cols="30" rows="3" readonly="readonly" ></textarea></td>
            </tr>
         
        </table>
    </div>
    
    <div runat="server" id="jsonDiv" />
    <input type="hidden" id="hdClient" runat="server" />
           </li>
    </ul>
     
  </div>
  


 


   <div id="footer">
    <p> Copyright &copy; 2013. II technology  

</div>
</form>
</body>
</html>